package com.example.houtai.entity;

import com.org.dto.IdNamePair;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.util.Date;
import java.util.List;

@Data
@Document(indexName = "essave", type = "EsSave")
public class EsSave {


    @Id
    private String Id;
    /**
     * 房源id
     */
    private String roomId;
    /**
     * 房源名称
     */
    private String roomName;
    /**
     * 封面
     */
    private String roomFrontCover;
    /**
     * 是否推荐房源
     */
    private Boolean isRecommended;

    /**
     * 房产ID
     */
    private String houseId;
    /**
     * 楼盘ID
     */
    private Integer premisesId;
    /**
     * 楼盘名称
     */
    private String premisesName;
    /**
     * 楼盘地址
     */
    private String premisesAddress;

    /**
     * 省id
     */
    private Integer provinceId;
    /**
     * 省名称
     */
    private String provinceName;
    /**
     * 省拼音
     */
    private String provincePinyin;
    /**
     * 省拼音简称
     */
    private String provincePinyinShort;

    /**
     * 市id
     */
    private Integer cityId;
    /**
     * 市名称
     */
    private String cityName;
    /**
     * 市拼音
     */
    private String cityPinyin;
    /**
     * 市拼音简称
     */
    private String cityPinyinShort;

    /**
     * 区id
     */
    private Integer districtId;
    /**
     * 区名称
     */
    private String districtName;
    /**
     * 区拼音
     */
    private String districtPinyin;

    /**
     * 区拼音简称
     */
    private String districtPinyinShort;

    /**
     * 商圈列表<id, name>
     */
    private List<IdNamePair> businessCircleList;

    /**
     * 地铁列表<id, name>
     */
    private List<IdNamePair> subwayList;

    /**
     * 租赁方式(LeaseType)
     */
    private Integer leaseType;

    /**
     * 价格
     */
    private Double rental;

    /**
     * 面积
     */
    private Double proportion;

    /**
     * 室
     */
    private Integer roomNum;

    /**
     * 厅
     */
    private Integer hallNum;

    /**
     * 装修(DecorationType)
     */
    private Integer decorate;

    /**
     * 朝向(DirectionType)
     */
    private Integer direction;

    /**
     * 建筑类型(BuildingType)
     */
    private Integer buildingType;

    /**
     * 物业类型(PremisesType)
     */
    private String premisesType;

    /**
     * 发布时间
     */
    private Date publishTime;

    private ManagerInfo managerInfo;
}
